package com.example.xn.snakegame;

import android.app.Application;
import android.media.MediaPlayer;
/**
 * Created by xn on 17-3-27.
 */

public class MygameApplication extends Application {
  public static  MediaPlayer mediaPlayer;

    @Override
    public void onCreate() {
        //mygameApplication= (MygameApplication) getApplication();
        mediaPlayer=MediaPlayer.create(getApplicationContext(),R.raw.snake);
        mediaPlayer.setLooping(true);

    }
}
